Integrand size = 25, antiderivative size = 115 \[ \int \frac {A+C \cos ^2(c+d x)}{(b \cos (c+d x))^{9/2}} \, dx=\frac {2 (5 A+7 C) \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{21 b^4 d \sqrt {b \cos (c+d x)}}+\frac {2 A \sin (c+d x)}{7 b d (b \cos (c+d x))^{7/2}}+\frac {2 (5 A+7 C) \sin (c+d x)}{21 b^3 d (b \cos (c+d x))^{3/2}} \]
2/7*A*sin(d*x+c)/b/d/(b*cos(d*x+c))^(7/2)+2/21*(5*A+7*C)*sin(d*x+c)/b^3/d/ (b*cos(d*x+c))^(3/2)+2/21*(5*A+7*C)*(cos(1/2*d*x+1/2*c)^2)^(1/2)/cos(1/2*d *x+1/2*c)*EllipticF(sin(1/2*d*x+1/2*c),2^(1/2))*cos(d*x+c)^(1/2)/b^4/d/(b* cos(d*x+c))^(1/2)
Time = 0.05 (sec) , antiderivative size = 77, normalized size of antiderivative = 0.67 \[ \int \frac {A+C \cos ^2(c+d x)}{(b \cos (c+d x))^{9/2}} \, dx=\frac {2 \left ((5 A+7 C) \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )+\left (5 A+7 C+3 A \sec ^2(c+d x)\right ) \tan (c+d x)\right )}{21 b^4 d \sqrt {b \cos (c+d x)}} \]
(2*((5*A + 7*C)*Sqrt[Cos[c + d*x]]*EllipticF[(c + d*x)/2, 2] + (5*A + 7*C + 3*A*Sec[c + d*x]^2)*Tan[c + d*x]))/(21*b^4*d*Sqrt[b*Cos[c + d*x]])
Time = 0.46 (sec) , antiderivative size = 116, normalized size of antiderivative = 1.01, number of steps used = 8, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.320, Rules used = {3042, 3491, 3042, 3116, 3042, 3121, 3042, 3120}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {A+C \cos ^2(c+d x)}{(b \cos (c+d x))^{9/2}} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {A+C \sin \left (c+d x+\frac {\pi }{2}\right )^2}{\left (b \sin \left (c+d x+\frac {\pi }{2}\right )\right )^{9/2}}dx\) |
\(\Big \downarrow \) 3491 |
\(\displaystyle \frac {(5 A+7 C) \int \frac {1}{(b \cos (c+d x))^{5/2}}dx}{7 b^2}+\frac {2 A \sin (c+d x)}{7 b d (b \cos (c+d x))^{7/2}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {(5 A+7 C) \int \frac {1}{\left (b \sin \left (c+d x+\frac {\pi }{2}\right )\right )^{5/2}}dx}{7 b^2}+\frac {2 A \sin (c+d x)}{7 b d (b \cos (c+d x))^{7/2}}\) |
\(\Big \downarrow \) 3116 |
\(\displaystyle \frac {(5 A+7 C) \left (\frac {\int \frac {1}{\sqrt {b \cos (c+d x)}}dx}{3 b^2}+\frac {2 \sin (c+d x)}{3 b d (b \cos (c+d x))^{3/2}}\right )}{7 b^2}+\frac {2 A \sin (c+d x)}{7 b d (b \cos (c+d x))^{7/2}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {(5 A+7 C) \left (\frac {\int \frac {1}{\sqrt {b \sin \left (c+d x+\frac {\pi }{2}\right )}}dx}{3 b^2}+\frac {2 \sin (c+d x)}{3 b d (b \cos (c+d x))^{3/2}}\right )}{7 b^2}+\frac {2 A \sin (c+d x)}{7 b d (b \cos (c+d x))^{7/2}}\) |
\(\Big \downarrow \) 3121 |
\(\displaystyle \frac {(5 A+7 C) \left (\frac {\sqrt {\cos (c+d x)} \int \frac {1}{\sqrt {\cos (c+d x)}}dx}{3 b^2 \sqrt {b \cos (c+d x)}}+\frac {2 \sin (c+d x)}{3 b d (b \cos (c+d x))^{3/2}}\right )}{7 b^2}+\frac {2 A \sin (c+d x)}{7 b d (b \cos (c+d x))^{7/2}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {(5 A+7 C) \left (\frac {\sqrt {\cos (c+d x)} \int \frac {1}{\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right )}}dx}{3 b^2 \sqrt {b \cos (c+d x)}}+\frac {2 \sin (c+d x)}{3 b d (b \cos (c+d x))^{3/2}}\right )}{7 b^2}+\frac {2 A \sin (c+d x)}{7 b d (b \cos (c+d x))^{7/2}}\) |
\(\Big \downarrow \) 3120 |
\(\displaystyle \frac {(5 A+7 C) \left (\frac {2 \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{3 b^2 d \sqrt {b \cos (c+d x)}}+\frac {2 \sin (c+d x)}{3 b d (b \cos (c+d x))^{3/2}}\right )}{7 b^2}+\frac {2 A \sin (c+d x)}{7 b d (b \cos (c+d x))^{7/2}}\) |
(2*A*Sin[c + d*x])/(7*b*d*(b*Cos[c + d*x])^(7/2)) + ((5*A + 7*C)*((2*Sqrt[ Cos[c + d*x]]*EllipticF[(c + d*x)/2, 2])/(3*b^2*d*Sqrt[b*Cos[c + d*x]]) + (2*Sin[c + d*x])/(3*b*d*(b*Cos[c + d*x])^(3/2))))/(7*b^2)
3.1.88.3.1 Defintions of rubi rules used
Int[((b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[Cos[c + d*x]*(( b*Sin[c + d*x])^(n + 1)/(b*d*(n + 1))), x] + Simp[(n + 2)/(b^2*(n + 1)) I nt[(b*Sin[c + d*x])^(n + 2), x], x] /; FreeQ[{b, c, d}, x] && LtQ[n, -1] && IntegerQ[2*n]
Int[1/Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2/d)*EllipticF[(1/2 )*(c - Pi/2 + d*x), 2], x] /; FreeQ[{c, d}, x]
Int[((b_)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[(b*Sin[c + d*x]) ^n/Sin[c + d*x]^n Int[Sin[c + d*x]^n, x], x] /; FreeQ[{b, c, d}, x] && Lt Q[-1, n, 1] && IntegerQ[2*n]
Int[((b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((A_) + (C_.)*sin[(e_.) + (f_.)*(x _)]^2), x_Symbol] :> Simp[A*Cos[e + f*x]*((b*Sin[e + f*x])^(m + 1)/(b*f*(m + 1))), x] + Simp[(A*(m + 2) + C*(m + 1))/(b^2*(m + 1)) Int[(b*Sin[e + f* x])^(m + 2), x], x] /; FreeQ[{b, e, f, A, C}, x] && LtQ[m, -1]
Leaf count of result is larger than twice the leaf count of optimal. \(413\) vs. \(2(127)=254\).
Time = 10.55 (sec) , antiderivative size = 414, normalized size of antiderivative = 3.60
method | result | size |
default | \(-\frac {2 \sqrt {-\left (-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1\right ) b \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (C \left (-\frac {\cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {-b \left (2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-\left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )\right )}}{6 b \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )-\frac {1}{2}\right )^{2}}+\frac {\sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, F\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )}{3 \sqrt {-b \left (2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-\left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )\right )}}\right )+A \left (-\frac {\cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {-b \left (2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-\left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )\right )}}{56 b \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )-\frac {1}{2}\right )^{4}}-\frac {5 \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {-b \left (2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-\left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )\right )}}{42 b \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )-\frac {1}{2}\right )^{2}}+\frac {5 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, F\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )}{21 \sqrt {-b \left (2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-\left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )\right )}}\right )\right )}{b^{4} \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) b}\, d}\) | \(414\) |
parts | \(-\frac {2 A \left (-40 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, F\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \left (\sin ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-40 \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (\sin ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+60 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, F\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+40 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right )-30 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, F\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-16 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right )+5 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, F\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )\right ) \sqrt {\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) b \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}}{21 b^{4} \sqrt {-b \left (2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-\left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )\right )}\, {\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right )}^{3} \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) b}\, d}-\frac {2 C \left (-2 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, F\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right )+\sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, F\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )\right ) \sqrt {\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) b \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}}{3 b^{4} \sqrt {-b \left (2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-\left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )\right )}\, \left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) b}\, d}\) | \(641\) |
-2*(-(-2*cos(1/2*d*x+1/2*c)^2+1)*b*sin(1/2*d*x+1/2*c)^2)^(1/2)/b^4*(C*(-1/ 6*cos(1/2*d*x+1/2*c)/b*(-b*(2*sin(1/2*d*x+1/2*c)^4-sin(1/2*d*x+1/2*c)^2))^ (1/2)/(cos(1/2*d*x+1/2*c)^2-1/2)^2+1/3*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(-2*co s(1/2*d*x+1/2*c)^2+1)^(1/2)/(-b*(2*sin(1/2*d*x+1/2*c)^4-sin(1/2*d*x+1/2*c) ^2))^(1/2)*EllipticF(cos(1/2*d*x+1/2*c),2^(1/2)))+A*(-1/56*cos(1/2*d*x+1/2 *c)/b*(-b*(2*sin(1/2*d*x+1/2*c)^4-sin(1/2*d*x+1/2*c)^2))^(1/2)/(cos(1/2*d* x+1/2*c)^2-1/2)^4-5/42*cos(1/2*d*x+1/2*c)/b*(-b*(2*sin(1/2*d*x+1/2*c)^4-si n(1/2*d*x+1/2*c)^2))^(1/2)/(cos(1/2*d*x+1/2*c)^2-1/2)^2+5/21*(sin(1/2*d*x+ 1/2*c)^2)^(1/2)*(-2*cos(1/2*d*x+1/2*c)^2+1)^(1/2)/(-b*(2*sin(1/2*d*x+1/2*c )^4-sin(1/2*d*x+1/2*c)^2))^(1/2)*EllipticF(cos(1/2*d*x+1/2*c),2^(1/2))))/s in(1/2*d*x+1/2*c)/((2*cos(1/2*d*x+1/2*c)^2-1)*b)^(1/2)/d
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.09 (sec) , antiderivative size = 135, normalized size of antiderivative = 1.17 \[ \int \frac {A+C \cos ^2(c+d x)}{(b \cos (c+d x))^{9/2}} \, dx=\frac {\sqrt {2} {\left (-5 i \, A - 7 i \, C\right )} \sqrt {b} \cos \left (d x + c\right )^{4} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) + \sqrt {2} {\left (5 i \, A + 7 i \, C\right )} \sqrt {b} \cos \left (d x + c\right )^{4} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right ) + 2 \, {\left ({\left (5 \, A + 7 \, C\right )} \cos \left (d x + c\right )^{2} + 3 \, A\right )} \sqrt {b \cos \left (d x + c\right )} \sin \left (d x + c\right )}{21 \, b^{5} d \cos \left (d x + c\right )^{4}} \]
1/21*(sqrt(2)*(-5*I*A - 7*I*C)*sqrt(b)*cos(d*x + c)^4*weierstrassPInverse( -4, 0, cos(d*x + c) + I*sin(d*x + c)) + sqrt(2)*(5*I*A + 7*I*C)*sqrt(b)*co s(d*x + c)^4*weierstrassPInverse(-4, 0, cos(d*x + c) - I*sin(d*x + c)) + 2 *((5*A + 7*C)*cos(d*x + c)^2 + 3*A)*sqrt(b*cos(d*x + c))*sin(d*x + c))/(b^ 5*d*cos(d*x + c)^4)
Timed out. \[ \int \frac {A+C \cos ^2(c+d x)}{(b \cos (c+d x))^{9/2}} \, dx=\text {Timed out} \]
\[ \int \frac {A+C \cos ^2(c+d x)}{(b \cos (c+d x))^{9/2}} \, dx=\int { \frac {C \cos \left (d x + c\right )^{2} + A}{\left (b \cos \left (d x + c\right )\right )^{\frac {9}{2}}} \,d x } \]
\[ \int \frac {A+C \cos ^2(c+d x)}{(b \cos (c+d x))^{9/2}} \, dx=\int { \frac {C \cos \left (d x + c\right )^{2} + A}{\left (b \cos \left (d x + c\right )\right )^{\frac {9}{2}}} \,d x } \]
Timed out. \[ \int \frac {A+C \cos ^2(c+d x)}{(b \cos (c+d x))^{9/2}} \, dx=\int \frac {C\,{\cos \left (c+d\,x\right )}^2+A}{{\left (b\,\cos \left (c+d\,x\right )\right )}^{9/2}} \,d x \]